import cv2

cap = cv2.VideoCapture(0)

while cap.isOpened():
    ret,frame = cap.read()
    frame = cv2.flip(frame,1)
    imgGray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    imgBlue = cv2.GaussianBlur(imgGray, (7,7), 0)
    imgCanny = cv2.Canny(imgGray, 150,200)


    #cv2.imshow("video",frame)
    #cv2.imshow("Gray",imgGray)
    #cv2.imshow("Blue",imgBlue)
    cv2.imshow("Canny", imgCanny)
    if cv2.waitKey(1) & 0xfff == ord('q'):
        break


cap.release()
cv2.destroyAllWindows()
